﻿<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/style.css" />
<!--/meta 作为公共模版分离出去-->
<title>商品信息统计</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 统计管理 <span class="c-gray en">&gt;</span> 商品统计列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="mt-0">
	<table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
		<thead>
            <tr>
                <th colspan="99" scope="col">商品信息统计</th>
            </tr>
			<tr class="text-c">
				<th width="60">排序</th>
				<th width="120">商品名称(ID)</th>
				<th width="70">类型</th>
                <th width="120">日销量
                    <a title="升序" href="<?php echo url('count/countGoods',array('key'=>'today_qty','sort'=>'asc'))?>"><i class="Hui-iconfont">&#xe6d6;</i></a>
                    <a title="降序" href="<?php echo url('count/countGoods',array('key'=>'today_qty','sort'=>'desc'))?>"><i class="Hui-iconfont">&#xe6d5;</i></a>
                </th>
                <th width="120">日营业额
                    <a title="升序" href="<?php echo url('count/countGoods',array('key'=>'today_amount','sort'=>'asc'))?>"><i class="Hui-iconfont">&#xe6d6;</i></a>
                    <a title="降序" href="<?php echo url('count/countGoods',array('key'=>'today_amount','sort'=>'desc'))?>"><i class="Hui-iconfont">&#xe6d5;</i></a>
                </th>
                <th width="120">总销量
                    <a title="升序" href="<?php echo url('count/countGoods',array('key'=>'qty','sort'=>'asc'))?>"><i class="Hui-iconfont">&#xe6d6;</i></a>
                    <a title="降序" href="<?php echo url('count/countGoods',array('key'=>'qty','sort'=>'desc'))?>"><i class="Hui-iconfont">&#xe6d5;</i></a>
                </th>
                <th width="120">总营业额
                    <a title="升序" href="<?php echo url('count/countGoods',array('key'=>'amount','sort'=>'asc'))?>"><i class="Hui-iconfont">&#xe6d6;</i></a>
                    <a title="降序" href="<?php echo url('count/countGoods',array('key'=>'amount','sort'=>'desc'))?>"><i class="Hui-iconfont">&#xe6d5;</i></a>
                </th>
			</tr>
		</thead>
		<tbody>
		<?php foreach($list as $v):?>
			<tr class="text-c">
				<td><?php echo $v['sort']?></td>
				<td><?php echo $v['name']?>(<?php echo $v['id']?>)</td>
				<td><?php echo $v['type_name']?></td>
                <td><?php echo $v['today_qty']?></td>
                <td><?php echo $v['today_amount']?></td>
                <td><?php echo empty($v['qty']) ? 0 : $v['qty']?></td>
                <td><?php echo empty($v['amount']) ? 0 : $v['amount']?></td>
			</tr>
		<?php endforeach;?>
        <?php if(empty($list)):?>
        <tr class="text-l"><td colspan="20">没有找到匹配的记录</td></tr>
        <?php endif;?>
		</tbody>
	</table>
	</div>
    <span class="r pages mt-10"><?php echo $page?></span>
</div>
<script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/js/layer.js"></script>
<script type="text/javascript" src="/static/admin/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/admin/js/H-ui.admin.js"></script>
<script type="text/javascript">
/*添加,编辑*/
function show(title,url,w,h){
	layer_show(title,url,w,h);
}
</script> 
</body>
</html>